//
//  Panic buying Panic buying Panic buying PanicBuyingViewController.m
//  快圈
//
//  Created by ym on 16/9/10.
//  Copyright © 2016年 ym. All rights reserved.
//

#import "Panic buying Panic buying Panic buying PanicBuyingViewController.h"
#import "PanicBuyTableViewCell.h"

@interface Panic_buying_Panic_buying_Panic_buying_PanicBuyingViewController ()<UITableViewDelegate,UITableViewDataSource,UIScrollViewDelegate>
@property (nonatomic,strong) UITableView *tableView;

@end

@implementation Panic_buying_Panic_buying_Panic_buying_PanicBuyingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"抢购中心";
    
    [self iniitUI];
    
}

- (void)iniitUI{
    self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 64) style:UITableViewStylePlain];
    [self.view addSubview:self.tableView];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.separatorStyle = NO;
    self.tableView.showsHorizontalScrollIndicator = NO;
    self.tableView.showsVerticalScrollIndicator = NO;
    self.tableView.rowHeight = 310;
    
      [self.tableView registerNib:[UINib nibWithNibName:@"PanicBuyTableViewCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"PanicBuyTableViewCell"];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 100;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
        PanicBuyTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"PanicBuyTableViewCell"];
        cell.backgroundColor = RGBACOLOR(55, 53, 66, 1);
        
        return cell;

}
@end
